package com.lsu.chain.homework;

/**
 * 测试类
 *
 * @Author wang suo
 * @Date 2020/11/26 0026 15:17
 * @Version 1.0
 */
public class Test {
    public static void main(String[] args) {
        String[] pai = {"黑桃Q", "1", "2", "3", "4", "5", "6", "7", "8"};
        AbstractChain play1 = new Play1();
        AbstractChain play2 = new Play2();
        AbstractChain play3 = new Play3();
        AbstractChain play4 = new Play4();
        play1.setNext(play2);
        play2.setNext(play3);
        play3.setNext(play4);
        play1.handlerRequest(pai[0]);
    }
}
